import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import components from './components/index';
import vueQr from 'vue-qr/src/packages/vue-qr.vue'
import 'vant/es/toast/style';
import 'vant/es/dialog/style';
import 'vant/es/notify/style';
import 'vant/es/image-preview/style';
import "./less/index.less";
import less from 'less'
import { isMobile } from '@/utils/utils';
import ElementPlus from 'element-plus'
import 'amis/sdk/sdk.js';
import 'element-plus/dist/index.css'

const app = createApp(App)

components(app)

app.provide('$isMobile', isMobile());//全局发送api

app.component('vueQr', vueQr)
	.use(router)
	.use(store)
	.use(ElementPlus)
	.mount('#app')
